package com.yiwyn.Creational.prototype;

import lombok.Data;

@Data
public class DroolsEntity implements Cloneable {

    private String droolsName;

    private String droolsRule;


    public DroolsEntity(String droolsName, String droolsRule) {
        this.droolsName = droolsName;
        this.droolsRule = droolsRule;
    }

    @Override
    public DroolsEntity clone() {
        try {
            return (DroolsEntity) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
